from person import Person
from db import DBConnection

if __name__ == '__main__':
    person = Person()
    person.pno =10003
    person.name ='tomo'
    person.age =18
    person.address ='郑州'

    db = DBConnection()
    cursor = db.getCursor()
    db.add_row(person,cursor)
    cursor.close()
